<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Factories\HasFactory;
use Illuminate\Database\Eloquent\SoftDeletes;
use Illuminate\Database\Eloquent\Model as BaseModel;

class AdminAuthModel extends BaseModel
{
    use HasFactory, SoftDeletes;

    protected $table = 't_admin_auth';

    protected $primaryKey = 'id';

    public $timestamps = true;

    const CREATED_AT = 'created_at';
    
    const UPDATED_AT = null;

    const METHOD = ['get', 'post', 'put', 'delete', ''];

    const BUTTON_TYPE = 3;

    //
    const ADMIN_PLATFORM = 1;
    const APP_PLATFORM = 2;

    // protected $fillable = [];

    protected $guarded = [];

    protected $hidden = [
        'deleted_at',
    ];

    protected $casts = [
        'created_at'   => 'date:Y-m-d H:i:s',
    ];
}
